#set(title='登录') #@index_layout() #define index_main()
<div class="col-md-6 col-md-offset-3">
	<div class="text-center">
		#if(isAdmin) 
			<h2>管理员登录</h2>
		#else
			<h2>用户登录</h2>
		#end
		#if(errorCode == '1000')
			<p class="text-danger">登陆失败：用户名或密码不正确。</p>
		#elseif(errorCode == '1002')
			<p class="text-danger">登陆失败：您的信息未通过审核。</p>
		#end
	</div>
	<form action="#(ctx)/login/dologin" method="post">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">账号登录信息</h3>
			</div>
			<div class="panel-body">
				<div class="form-group">
					<label for="inputEmail">邮箱地址</label> <input type="email" value="#(email)"
						name="email" class="form-control" placeholder="请输入邮箱" required
						autofocus>
				</div>
				<div class="form-group">
					<label for="inputPassword">密码</label> <input type="password"
						name="password" class="form-control" placeholder="请输入密码" required>
				</div>
			</div>
		</div>
		<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
	</form>
</div>
#end

